<template>
  <el-form class="eleConfigForm" ref="eleConfigData" :model="eleConfigData" label-width="80px" size="mini">
    <el-form-item label="标签名"> 
      <el-input v-model="eleConfigData.label"></el-input>
    </el-form-item>
    <el-form-item label="键名">
      <el-input v-model="eleConfigData.key"></el-input>
    </el-form-item>
    <el-form-item label="禁用">
      <el-switch v-model="eleConfigData.disabled"></el-switch>
    </el-form-item>
    <el-form-item label="必填">
      <el-switch v-model="eleConfigData.required"></el-switch>
    </el-form-item>
    <el-form-item label="所占行">
      <el-input-number v-model="eleConfigData.spannum" :min="1" :max="24" label="一行以24列分割"></el-input-number>
      （一行以24列分割）
    </el-form-item>
    <el-form-item label="是否多文件上传" label-width="125px">
      <el-switch v-model="eleConfigData.multiple"></el-switch>
    </el-form-item>
    <el-form-item label="上传地址">
      <el-input v-model="eleConfigData.uploadUrl"></el-input>
    </el-form-item>
    <el-form-item label="数据类型">
      <el-select v-model="eleConfigData.dataType" placeholder="请选择">
        <el-option label="对象数组" value="object"></el-option>
        <el-option label="字符串(以','隔开)" value="string"></el-option>
        <el-option label="数组" value="array"></el-option>
      </el-select>
      （仅照片墙必填）
    </el-form-item>
    <el-form-item label="多文件上传文件个数限制" label-width="177px">
      <el-input-number v-model="eleConfigData.limit" :min="0" label="多文件上传文件个数限制"></el-input-number>
    </el-form-item>
    <el-form-item label="接受文件上传类型" label-width="135px">
      <el-select
        v-model="eleConfigData.fileType"
        multiple
        filterable
        placeholder="请选择文件类型">
        <el-option label="图片" value="image"></el-option>
        <el-option label="所有文件" value="file"></el-option>
        <el-option label="文档" value="word"></el-option>
        <el-option label="pdf" value="pdf"></el-option>
        <el-option label="表格" value="excel"></el-option>
        <el-option label="视频" value="video"></el-option>
        <el-option label="文本" value="txt"></el-option>
        <el-option label="音频" value="radio"></el-option>
        <el-option label="ppt" value="ppt"></el-option>
        <el-option label="压缩包" value="zip"></el-option>
      </el-select>
    </el-form-item>
    <el-form-item label="接受文件大小限制(字节/kb)" label-width="192px">
      <el-input-number v-model="eleConfigData.size" :min="0" label="接受文件大小限制"></el-input-number>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  props: {
    eleConfigData: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {
      
    };
  },
  watch: {
    eleConfigData(val) {
      console.log(val)
    }
  }
};
</script>